Upstream patches for TC358743 colour swap#7070
Merged
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom Oct 14, 2025
Merged
Upstream patches for TC358743 colour swap#7070pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
Conversation
5fd67a1 to
2679781
Compare
Upstream series https://lore.kernel.org/linux-media/20250917-csi-bgr-rgb-v3-0-0145571b3aa4@kernel.org/ The subdev format documentation has a subsection describing how to use the media bus pixel codes for serial buses. While it describes the sampling part well, it doesn't really describe the current convention used for the components order. Let's improve that. Signed-off-by: Maxime Ripard <mripard@kernel.org>
Upstream series https://lore.kernel.org/linux-media/20250917-csi-bgr-rgb-v3-0-0145571b3aa4@kernel.org/ The tc358743 is an HDMI to MIPI-CSI2 bridge. It can output all three HDMI 1.4 video formats: RGB 4:4:4, YCbCr 4:2:2, and YCbCr 4:4:4. RGB 4:4:4 is converted to the MIPI-CSI2 RGB888 video format, and listed in the driver as MEDIA_BUS_FMT_RGB888_1X24. Most CSI2 receiver drivers then map MEDIA_BUS_FMT_RGB888_1X24 to V4L2_PIX_FMT_RGB24. However, V4L2_PIX_FMT_RGB24 is defined as having its color components in the R, G and B order, from left to right. MIPI-CSI2 however defines the RGB888 format with blue first. This essentially means that the R and B will be swapped compared to what V4L2_PIX_FMT_RGB24 defines. The proper MBUS format would be BGR888, so let's use that. Fixes: d32d986 ("[media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge") Signed-off-by: Maxime Ripard <mripard@kernel.org>
2679781 to
63d7ac7
Compare
Contributor
Author
|
Tested and does the right thing. I'm happy for this to be merged now, so draft status dropped. |
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Oct 17, 2025
kernel: Add config settings and i2c-sensor support for the TMP117 See: raspberrypi/linux#7083 kernel: Upstream patches for TC358743 colour swap See: raspberrypi/linux#7070 kernel: media: ov9282: Add external trigger mode support See: raspberrypi/linux#6954 kernel: Improve the RP1 DMA channel allocation scheme See: raspberrypi/linux#7089
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Oct 17, 2025
kernel: Add config settings and i2c-sensor support for the TMP117 See: raspberrypi/linux#7083 kernel: Upstream patches for TC358743 colour swap See: raspberrypi/linux#7070 kernel: media: ov9282: Add external trigger mode support See: raspberrypi/linux#6954 kernel: Improve the RP1 DMA channel allocation scheme See: raspberrypi/linux#7089
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream patches proposed to solve #6068
Draft PR for testing.